#ifndef __G_LISTENER_HPP_
#define __G_LISTENER_HPP_

#include "Main.h"
#include <iostream>
#include <thread>
#include <conio.h>
#include <Windows.h>
#include <vector>

class InputListener
{
public:
    InputListener() = default;

    ~InputListener() = default;

    void finsh();

    void startListening();


    bool GetInput(int keycode);

    void cleanInput();

private:
    std::thread inputThread;
    std::vector<int> inputqueue;
    void keyMsgHandle(ExMessage msg);

    void checkMouseInput();

};

#endif